<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>Document</title>
	<link rel="stylesheet" type="text/css" href="./include/style.css">
</head>
<body>
	<div class="container">
		<header>
			<h1>BBS(讨论组)</h1>
		</header>
		<nav>
			<div class="search">
				<form method="post" action="search.php">
					<input type="text" class="w" name="w"><input type="submit" class="seach_btn" value="搜索">
				</form>
			</div>
			<ul>

				<?php if(isset($_SESSION['u'])){ ;?>
				<li><a href="#"><?php echo strtoupper($_SESSION['u']);?></a></li>
				<li><a href="logout.php">登出</a></li>
				<?php }else{ ?>
				<li><a href="login.php" title="登录">登录</a></li>
				<li><a href="reg.php" title="注册">注册</a></li>
 				<?php } ?>
			</ul>
		</nav>
		
	</div>
</body>
</html>